
#include "Handler2nd.h"
#include <iostream>

using namespace npResponsibilityChain;


//other constructors

//public methods
void Handler2nd::handlerRequest(int count) throw()
{
    if (count > 10 && count <= 20)
    {
        cout << "handler 2nd get it: " << count << endl;
    }
    else
    {
        if (shared_ptr<Handler> nextHander = this->getNextHandler().lock())
        {
            nextHander->handlerRequest(count);
        }
        else
        {
            cout << "No next handler." << flush;
        }
    }
}

//protected methods

//private methods

//static part

//others
